﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace AugustaDevelopersGuild.Models
{
    public class Forum
    {
        [HiddenInput(DisplayValue = false)]
        public int ForumID { get; set; }

        [Required(ErrorMessage = "Title is required")]
        [StringLength(50, ErrorMessage = "Title may not be longer than 50 characters")]
        public string Title { get; set; }

        public virtual ICollection<Post> Posts { get; set; }
    }
}